/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package ve.com.fitsoft.eicb.encuesta.SB.service.persistence;

import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil;
import com.liferay.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.util.OrderByComparator;
import com.liferay.portal.kernel.util.ReferenceRegistry;
import com.liferay.portal.service.ServiceContext;

import ve.com.fitsoft.eicb.encuesta.SB.model.Encuesta;

import java.util.List;

/**
 * The persistence utility for the encuesta service. This utility wraps {@link EncuestaPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
 *
 * <p>
 * Caching information and settings can be found in <code>portal.properties</code>
 * </p>
 *
 * @author leo
 * @see EncuestaPersistence
 * @see EncuestaPersistenceImpl
 * @generated
 */
public class EncuestaUtil {
	/*
	 * NOTE FOR DEVELOPERS:
	 *
	 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
	 */

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
	 */
	public static void clearCache() {
		getPersistence().clearCache();
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
	 */
	public static void clearCache(Encuesta encuesta) {
		getPersistence().clearCache(encuesta);
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
	 */
	public long countWithDynamicQuery(DynamicQuery dynamicQuery)
		throws SystemException {
		return getPersistence().countWithDynamicQuery(dynamicQuery);
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
	 */
	public static List<Encuesta> findWithDynamicQuery(DynamicQuery dynamicQuery)
		throws SystemException {
		return getPersistence().findWithDynamicQuery(dynamicQuery);
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
	 */
	public static List<Encuesta> findWithDynamicQuery(
		DynamicQuery dynamicQuery, int start, int end)
		throws SystemException {
		return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
	 */
	public static List<Encuesta> findWithDynamicQuery(
		DynamicQuery dynamicQuery, int start, int end,
		OrderByComparator orderByComparator) throws SystemException {
		return getPersistence()
				   .findWithDynamicQuery(dynamicQuery, start, end,
			orderByComparator);
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
	 */
	public static Encuesta update(Encuesta encuesta, boolean merge)
		throws SystemException {
		return getPersistence().update(encuesta, merge);
	}

	/**
	 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)
	 */
	public static Encuesta update(Encuesta encuesta, boolean merge,
		ServiceContext serviceContext) throws SystemException {
		return getPersistence().update(encuesta, merge, serviceContext);
	}

	/**
	* Caches the encuesta in the entity cache if it is enabled.
	*
	* @param encuesta the encuesta
	*/
	public static void cacheResult(
		ve.com.fitsoft.eicb.encuesta.SB.model.Encuesta encuesta) {
		getPersistence().cacheResult(encuesta);
	}

	/**
	* Caches the encuestas in the entity cache if it is enabled.
	*
	* @param encuestas the encuestas
	*/
	public static void cacheResult(
		java.util.List<ve.com.fitsoft.eicb.encuesta.SB.model.Encuesta> encuestas) {
		getPersistence().cacheResult(encuestas);
	}

	/**
	* Creates a new encuesta with the primary key. Does not add the encuesta to the database.
	*
	* @param idEncuesta the primary key for the new encuesta
	* @return the new encuesta
	*/
	public static ve.com.fitsoft.eicb.encuesta.SB.model.Encuesta create(
		long idEncuesta) {
		return getPersistence().create(idEncuesta);
	}

	/**
	* Removes the encuesta with the primary key from the database. Also notifies the appropriate model listeners.
	*
	* @param idEncuesta the primary key of the encuesta
	* @return the encuesta that was removed
	* @throws ve.com.fitsoft.eicb.encuesta.SB.NoSuchEncuestaException if a encuesta with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static ve.com.fitsoft.eicb.encuesta.SB.model.Encuesta remove(
		long idEncuesta)
		throws com.liferay.portal.kernel.exception.SystemException,
			ve.com.fitsoft.eicb.encuesta.SB.NoSuchEncuestaException {
		return getPersistence().remove(idEncuesta);
	}

	public static ve.com.fitsoft.eicb.encuesta.SB.model.Encuesta updateImpl(
		ve.com.fitsoft.eicb.encuesta.SB.model.Encuesta encuesta, boolean merge)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().updateImpl(encuesta, merge);
	}

	/**
	* Returns the encuesta with the primary key or throws a {@link ve.com.fitsoft.eicb.encuesta.SB.NoSuchEncuestaException} if it could not be found.
	*
	* @param idEncuesta the primary key of the encuesta
	* @return the encuesta
	* @throws ve.com.fitsoft.eicb.encuesta.SB.NoSuchEncuestaException if a encuesta with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static ve.com.fitsoft.eicb.encuesta.SB.model.Encuesta findByPrimaryKey(
		long idEncuesta)
		throws com.liferay.portal.kernel.exception.SystemException,
			ve.com.fitsoft.eicb.encuesta.SB.NoSuchEncuestaException {
		return getPersistence().findByPrimaryKey(idEncuesta);
	}

	/**
	* Returns the encuesta with the primary key or returns <code>null</code> if it could not be found.
	*
	* @param idEncuesta the primary key of the encuesta
	* @return the encuesta, or <code>null</code> if a encuesta with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static ve.com.fitsoft.eicb.encuesta.SB.model.Encuesta fetchByPrimaryKey(
		long idEncuesta)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().fetchByPrimaryKey(idEncuesta);
	}

	/**
	* Returns all the encuestas where groupId = &#63;.
	*
	* @param groupId the group ID
	* @return the matching encuestas
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<ve.com.fitsoft.eicb.encuesta.SB.model.Encuesta> findByGroupId(
		long groupId)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findByGroupId(groupId);
	}

	/**
	* Returns a range of all the encuestas where groupId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param groupId the group ID
	* @param start the lower bound of the range of encuestas
	* @param end the upper bound of the range of encuestas (not inclusive)
	* @return the range of matching encuestas
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<ve.com.fitsoft.eicb.encuesta.SB.model.Encuesta> findByGroupId(
		long groupId, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findByGroupId(groupId, start, end);
	}

	/**
	* Returns an ordered range of all the encuestas where groupId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param groupId the group ID
	* @param start the lower bound of the range of encuestas
	* @param end the upper bound of the range of encuestas (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of matching encuestas
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<ve.com.fitsoft.eicb.encuesta.SB.model.Encuesta> findByGroupId(
		long groupId, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .findByGroupId(groupId, start, end, orderByComparator);
	}

	/**
	* Returns the first encuesta in the ordered set where groupId = &#63;.
	*
	* @param groupId the group ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching encuesta
	* @throws ve.com.fitsoft.eicb.encuesta.SB.NoSuchEncuestaException if a matching encuesta could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static ve.com.fitsoft.eicb.encuesta.SB.model.Encuesta findByGroupId_First(
		long groupId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			ve.com.fitsoft.eicb.encuesta.SB.NoSuchEncuestaException {
		return getPersistence().findByGroupId_First(groupId, orderByComparator);
	}

	/**
	* Returns the first encuesta in the ordered set where groupId = &#63;.
	*
	* @param groupId the group ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching encuesta, or <code>null</code> if a matching encuesta could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static ve.com.fitsoft.eicb.encuesta.SB.model.Encuesta fetchByGroupId_First(
		long groupId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().fetchByGroupId_First(groupId, orderByComparator);
	}

	/**
	* Returns the last encuesta in the ordered set where groupId = &#63;.
	*
	* @param groupId the group ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching encuesta
	* @throws ve.com.fitsoft.eicb.encuesta.SB.NoSuchEncuestaException if a matching encuesta could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static ve.com.fitsoft.eicb.encuesta.SB.model.Encuesta findByGroupId_Last(
		long groupId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			ve.com.fitsoft.eicb.encuesta.SB.NoSuchEncuestaException {
		return getPersistence().findByGroupId_Last(groupId, orderByComparator);
	}

	/**
	* Returns the last encuesta in the ordered set where groupId = &#63;.
	*
	* @param groupId the group ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching encuesta, or <code>null</code> if a matching encuesta could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static ve.com.fitsoft.eicb.encuesta.SB.model.Encuesta fetchByGroupId_Last(
		long groupId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().fetchByGroupId_Last(groupId, orderByComparator);
	}

	/**
	* Returns the encuestas before and after the current encuesta in the ordered set where groupId = &#63;.
	*
	* @param idEncuesta the primary key of the current encuesta
	* @param groupId the group ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the previous, current, and next encuesta
	* @throws ve.com.fitsoft.eicb.encuesta.SB.NoSuchEncuestaException if a encuesta with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static ve.com.fitsoft.eicb.encuesta.SB.model.Encuesta[] findByGroupId_PrevAndNext(
		long idEncuesta, long groupId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			ve.com.fitsoft.eicb.encuesta.SB.NoSuchEncuestaException {
		return getPersistence()
				   .findByGroupId_PrevAndNext(idEncuesta, groupId,
			orderByComparator);
	}

	/**
	* Returns all the encuestas that the user has permission to view where groupId = &#63;.
	*
	* @param groupId the group ID
	* @return the matching encuestas that the user has permission to view
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<ve.com.fitsoft.eicb.encuesta.SB.model.Encuesta> filterFindByGroupId(
		long groupId)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().filterFindByGroupId(groupId);
	}

	/**
	* Returns a range of all the encuestas that the user has permission to view where groupId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param groupId the group ID
	* @param start the lower bound of the range of encuestas
	* @param end the upper bound of the range of encuestas (not inclusive)
	* @return the range of matching encuestas that the user has permission to view
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<ve.com.fitsoft.eicb.encuesta.SB.model.Encuesta> filterFindByGroupId(
		long groupId, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().filterFindByGroupId(groupId, start, end);
	}

	/**
	* Returns an ordered range of all the encuestas that the user has permissions to view where groupId = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param groupId the group ID
	* @param start the lower bound of the range of encuestas
	* @param end the upper bound of the range of encuestas (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of matching encuestas that the user has permission to view
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<ve.com.fitsoft.eicb.encuesta.SB.model.Encuesta> filterFindByGroupId(
		long groupId, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence()
				   .filterFindByGroupId(groupId, start, end, orderByComparator);
	}

	/**
	* Returns the encuestas before and after the current encuesta in the ordered set of encuestas that the user has permission to view where groupId = &#63;.
	*
	* @param idEncuesta the primary key of the current encuesta
	* @param groupId the group ID
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the previous, current, and next encuesta
	* @throws ve.com.fitsoft.eicb.encuesta.SB.NoSuchEncuestaException if a encuesta with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public static ve.com.fitsoft.eicb.encuesta.SB.model.Encuesta[] filterFindByGroupId_PrevAndNext(
		long idEncuesta, long groupId,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			ve.com.fitsoft.eicb.encuesta.SB.NoSuchEncuestaException {
		return getPersistence()
				   .filterFindByGroupId_PrevAndNext(idEncuesta, groupId,
			orderByComparator);
	}

	/**
	* Returns all the encuestas.
	*
	* @return the encuestas
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<ve.com.fitsoft.eicb.encuesta.SB.model.Encuesta> findAll()
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findAll();
	}

	/**
	* Returns a range of all the encuestas.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param start the lower bound of the range of encuestas
	* @param end the upper bound of the range of encuestas (not inclusive)
	* @return the range of encuestas
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<ve.com.fitsoft.eicb.encuesta.SB.model.Encuesta> findAll(
		int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findAll(start, end);
	}

	/**
	* Returns an ordered range of all the encuestas.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param start the lower bound of the range of encuestas
	* @param end the upper bound of the range of encuestas (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of encuestas
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<ve.com.fitsoft.eicb.encuesta.SB.model.Encuesta> findAll(
		int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().findAll(start, end, orderByComparator);
	}

	/**
	* Removes all the encuestas where groupId = &#63; from the database.
	*
	* @param groupId the group ID
	* @throws SystemException if a system exception occurred
	*/
	public static void removeByGroupId(long groupId)
		throws com.liferay.portal.kernel.exception.SystemException {
		getPersistence().removeByGroupId(groupId);
	}

	/**
	* Removes all the encuestas from the database.
	*
	* @throws SystemException if a system exception occurred
	*/
	public static void removeAll()
		throws com.liferay.portal.kernel.exception.SystemException {
		getPersistence().removeAll();
	}

	/**
	* Returns the number of encuestas where groupId = &#63;.
	*
	* @param groupId the group ID
	* @return the number of matching encuestas
	* @throws SystemException if a system exception occurred
	*/
	public static int countByGroupId(long groupId)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().countByGroupId(groupId);
	}

	/**
	* Returns the number of encuestas that the user has permission to view where groupId = &#63;.
	*
	* @param groupId the group ID
	* @return the number of matching encuestas that the user has permission to view
	* @throws SystemException if a system exception occurred
	*/
	public static int filterCountByGroupId(long groupId)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().filterCountByGroupId(groupId);
	}

	/**
	* Returns the number of encuestas.
	*
	* @return the number of encuestas
	* @throws SystemException if a system exception occurred
	*/
	public static int countAll()
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().countAll();
	}

	/**
	* Returns all the preguntas associated with the encuesta.
	*
	* @param pk the primary key of the encuesta
	* @return the preguntas associated with the encuesta
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<ve.com.fitsoft.eicb.encuesta.SB.model.Pregunta> getPreguntas(
		long pk) throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().getPreguntas(pk);
	}

	/**
	* Returns a range of all the preguntas associated with the encuesta.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param pk the primary key of the encuesta
	* @param start the lower bound of the range of encuestas
	* @param end the upper bound of the range of encuestas (not inclusive)
	* @return the range of preguntas associated with the encuesta
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<ve.com.fitsoft.eicb.encuesta.SB.model.Pregunta> getPreguntas(
		long pk, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().getPreguntas(pk, start, end);
	}

	/**
	* Returns an ordered range of all the preguntas associated with the encuesta.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param pk the primary key of the encuesta
	* @param start the lower bound of the range of encuestas
	* @param end the upper bound of the range of encuestas (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of preguntas associated with the encuesta
	* @throws SystemException if a system exception occurred
	*/
	public static java.util.List<ve.com.fitsoft.eicb.encuesta.SB.model.Pregunta> getPreguntas(
		long pk, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().getPreguntas(pk, start, end, orderByComparator);
	}

	/**
	* Returns the number of preguntas associated with the encuesta.
	*
	* @param pk the primary key of the encuesta
	* @return the number of preguntas associated with the encuesta
	* @throws SystemException if a system exception occurred
	*/
	public static int getPreguntasSize(long pk)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().getPreguntasSize(pk);
	}

	/**
	* Returns <code>true</code> if the pregunta is associated with the encuesta.
	*
	* @param pk the primary key of the encuesta
	* @param preguntaPK the primary key of the pregunta
	* @return <code>true</code> if the pregunta is associated with the encuesta; <code>false</code> otherwise
	* @throws SystemException if a system exception occurred
	*/
	public static boolean containsPregunta(long pk, long preguntaPK)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().containsPregunta(pk, preguntaPK);
	}

	/**
	* Returns <code>true</code> if the encuesta has any preguntas associated with it.
	*
	* @param pk the primary key of the encuesta to check for associations with preguntas
	* @return <code>true</code> if the encuesta has any preguntas associated with it; <code>false</code> otherwise
	* @throws SystemException if a system exception occurred
	*/
	public static boolean containsPreguntas(long pk)
		throws com.liferay.portal.kernel.exception.SystemException {
		return getPersistence().containsPreguntas(pk);
	}

	public static EncuestaPersistence getPersistence() {
		if (_persistence == null) {
			_persistence = (EncuestaPersistence)PortletBeanLocatorUtil.locate(ve.com.fitsoft.eicb.encuesta.SB.service.ClpSerializer.getServletContextName(),
					EncuestaPersistence.class.getName());

			ReferenceRegistry.registerReference(EncuestaUtil.class,
				"_persistence");
		}

		return _persistence;
	}

	/**
	 * @deprecated
	 */
	public void setPersistence(EncuestaPersistence persistence) {
	}

	private static EncuestaPersistence _persistence;
}